#pragma once
#include "../mysql/loginmysql.h"
#include "../redis/loginredis.h"
#include "../bean/uuidcreater.h"

class LoginService
{
private:
    const unsigned int kExpire_time = 10;
    std::string m_token;
    LoginMysql login_mysql;
    LoginRedis login_redis;

public:
    LoginService();
    ~LoginService();
    bool userCanLogin(const std::shared_ptr<User> &);
    std::string getToken() { return m_token; }
};
